package shiyl.use.springboot.config.fabric;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * Fabric的配置信息管理者
 * @author shiyl
 */

@Data
@ConfigurationProperties("fabric")
public class FabricDefinitionMng {
    private String version;
    private String description ;
    private List<ChannelCfg> channels ;

    @Override
    public String toString(){
        Gson g = new GsonBuilder().create() ;
        return g.toJson(this) ;
    }
}
